function update(obj, oid, gid) {
    var tds = $(obj).parent().parent().find('td');
    $("#mid").val(tds.eq(0).text());
    $("#mquantity").val(tds.eq(3).text());
    $("#mpurchasePrice").val(tds.eq(4).text());
    var onumbers = $("#osel").find("option");
    for (var j = 1; j < onumbers.length; j++) {
        if ($(onumbers[j]).val() == oid) {
            $(onumbers[j]).attr("selected", "selected");
        }
    }
    var gnumbers = $("#gsel").find("option");
    for (var j = 1; j < gnumbers.length; j++) {
        if ($(gnumbers[j]).val() == gid) {
            $(gnumbers[j]).attr("selected", "selected");
        }
    }
}
function deleteById(obj) {
    var tds = $(obj).parent().parent().find('td');
    var id = tds.eq(0).text();
    $("#did").val(id);
}
pageStart("orderItem");
pageStart2("orderItem");